		 function Ran(min,max){
   				 return Math.floor(min+Math.random()*(max-min));
			}
			
			$("#leave_Left dl").click(function()
			{
				$(this).css('z-index',999);
			})
			
			$('.leave_page_Footclose').click(function()
			{
				$(this).parents('dl').remove();
			})

				var headHeight=$("#Head").outerHeight();				
				var OWidth=$("#leave_Left").width();
				var Oheight=$("#leave_Left").height();
				for(var i=0;i<$('#leave_Left dl').length;i++)
				{
					var O=$('#leave_Left dl:eq('+i+')');
					
					var l=parseInt(Math.random()*(OWidth-O.width()));
					var t=parseInt(Ran(headHeight,Oheight-O.height()));
					O.css(
					{
						'left':l+'px',
						'top':t+'px'
					});
					Move(O);
				}
				function Move(Obj)
				{	
					var OLDX,OLDY,isMove=false;
						O.mousedown(function(e)
						{
							Obj.css({'opacity':0.5,'z-index':2});
							OLDX=e.pageX- parseInt(Obj.css('left'));
							OLDY=e.pageY- parseInt(Obj.css('top'));
							isMove=true;
						})
						
						$("#leave_Left").mousemove(function(e)
						{
							if (!isMove) return;

							var X = e.pageX, Y = e.pageY;	//移动时鼠标当前 X、Y 位置
							//var Obj={height:dl.outerHeight(),width:dl.outerWidth()};
							var Dw=$(Window).width()-Obj.width()-15;//浏览器宽度
							var Dh=$(Window).height()-Obj.height;//浏览器高度
							var left=X-OLDX<12?12:X-OLDX>Dw?Dw:X-OLDX;
							var top=Y-OLDY<headHeight+20?headHeight+20:Y-OLDY>$("#leave_Left").height()-100?$("#leave_Left").height()-100:Y-OLDY;
							Obj.css({'left':left+"px",'top':top+"px",'color':'red'});
//							alert(e.pageX);

						}).mouseup(function(e)
						{
							isMove=false;
							Obj.css({'opacity':1,'z-index':1,'color':'black'});		
						})
				}
	